package com.spzx.order;

import com.spzx.common.anno.EnableUserTokenFeignInterceptor;
import com.spzx.common.anno.EnableUserWebMvcConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * Project: spzx-parent
 * Package: com.spzx.order
 * Version: 1.0
 * <p>
 * Created by  wangjiaxin  on 2024/4/28 上午12:17
 */
@SpringBootApplication
@EnableFeignClients(basePackages = {"com.spzx.feign.cart", "com.spzx.feign.user", "com.spzx.feign.product"})
@EnableUserTokenFeignInterceptor   //远程调用时，将token信息传入
@EnableUserWebMvcConfiguration      //远程调用时，将用户信息放入ThreadLocal中
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }
}
